package pl.devfest.working;

import pl.devfest.GeneralActivity;
import pl.devfest.R;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class WorkingModeActivity extends GeneralActivity {
    boolean isStarted = false;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.working_mode);

	final Button btton = (Button) findViewById(R.id.button_start);
	btton.setOnClickListener(new OnClickListener() {

	    @Override
	    public void onClick(View v) {
		isStarted = !isStarted;

		if (isStarted)
		    btton.setText("Stop working mode");
		else
		    btton.setTag("Start woking mode");
	    }
	});
    }
}
